home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / util1 / yk211src.lha / Yak_2.11_Src / Prefs / Include / Mousecycling_window.h < prev    next >
C/C++ Source or Header  |  1995-11-16  |  4KB  |  90 lines

  1.  
  2. #ifndef MOUSECYCLING_H
  3.  
  4. #define MOUSECYCLING_H
  5.  
  6. #ifndef INTUITION_INTUITION_H
  7. #include <intuition/intuition.h>
  8. #endif
  9. #ifndef LIBRARIES_GADTOOLS_H
  10. #include <libraries/gadtools.h>
  11. #endif
  12.  
  13.  
  14. #define GDX_WindowToFrontActive                0
  15. #define GDX_WindowToBackActive                 1
  16. #define GDX_ScreenCyclingActive                2
  17. #define GDX_ScreenToFront_Check                3
  18. #define GDX_ScreenToBack_Check                 4
  19. #define GDX_WindowToFrontClicks                5
  20. #define GDX_ExcludeWbWindow                    6
  21. #define GDX_WindowToFrontPattern               7
  22. #define GDX_WindowToBackPattern                8
  23. #define GDX_ScreenCyclingPattern               9
  24. #define GDX_HotkeyScreenCycling                10
  25. #define GDX_HotkeyWindowToBack                 11
  26. #define GDX_HotkeyWindowToFront                12
  27. #define GDX_WindowToBackClicks                 13
  28. #define GDX_ScreenCyclingClicks                14
  29. #define GDX_Return5                            15
  30.  
  31. #define MouseCycling_CNT 16
  32.  
  33. #ifdef GADTOOLS
  34. extern struct Window        *MouseCyclingWnd;
  35. extern struct Gadget        *MouseCyclingGList;
  36. extern struct Gadget        *MouseCyclingGadgets[MouseCycling_CNT];
  37. extern UWORD                 MouseCyclingWidth;
  38. extern UWORD                 MouseCyclingHeight;
  39. extern UBYTE                *MouseCyclingWdt;
  40. extern struct IntuiText      MouseCyclingIText[];
  41. extern UWORD                 MouseCyclingGTypes[];
  42. extern struct NewGadget      MouseCyclingNGad[];
  43. extern ULONG                 MouseCyclingGTags[];
  44. #endif
  45.  
  46. GLOBAL VOID InitClick1Labels        (VOID);
  47. GLOBAL VOID InitMouseCyclingITexts  (VOID);
  48. GLOBAL VOID MouseCyclingRender      (VOID);
  49. GLOBAL int  OpenMouseCyclingWindow  (VOID);
  50. GLOBAL VOID CloseMouseCyclingWindow (VOID);
  51. GLOBAL LONG HandleMouseCyclingIDCMP (VOID);
  52. GLOBAL BOOL ShowMouseCyclingWindow  (VOID);
  53.  
  54. #ifdef BGUI                                             /* NMC */
  55. GLOBAL struct Window  *MouseCyclingWnd;
  56. GLOBAL Object         *MouseCyclingObjects[];
  57. #endif
  58.  
  59. #ifdef MUI
  60. GLOBAL APTR           *MouseCyclingWnd;
  61. GLOBAL APTR            MouseCyclingObjects[];
  62. #endif
  63.  
  64. #if defined(MUI) || defined(BGUI)               /* NMC */
  65.  
  66. #define CH_WinToFrontActive             MouseCyclingObjects[GDX_WindowToFrontActive]
  67. #define CH_WinToBackActive              MouseCyclingObjects[GDX_WindowToBackActive]
  68. #define CH_ScrCyclingActive             MouseCyclingObjects[GDX_ScreenCyclingActive]
  69. #define CH_ScrToFront                   MouseCyclingObjects[GDX_ScreenToFront_Check]
  70. #define CH_ScrToBack                    MouseCyclingObjects[GDX_ScreenToBack_Check]
  71. #define CH_ExcludeWBWin                 MouseCyclingObjects[GDX_ExcludeWbWindow]
  72. #define STR_WinToFrontPat               MouseCyclingObjects[GDX_WindowToFrontPattern]
  73. #define STR_WinToBackPat                MouseCyclingObjects[GDX_WindowToBackPattern]
  74. #define STR_ScrCyclingPat               MouseCyclingObjects[GDX_ScreenCyclingPattern]
  75. #define BT_HotkeyScrCycling             MouseCyclingObjects[GDX_HotkeyScreenCycling]
  76. #define BT_HotkeyWinToBack              MouseCyclingObjects[GDX_HotkeyWindowToBack]
  77. #define BT_HotkeyWinToFront             MouseCyclingObjects[GDX_HotkeyWindowToFront]
  78. #define CYC_WinToFrontClicks            MouseCyclingObjects[GDX_WindowToFrontClicks]
  79. #define CYC_WinToBackClicks             MouseCyclingObjects[GDX_WindowToBackClicks]
  80. #define CYC_ScrCyclingClicks            MouseCyclingObjects[GDX_ScreenCyclingClicks]
  81. #define BT_Return5                      MouseCyclingObjects[GDX_Return5]
  82.  
  83. GLOBAL APTR CreateMouseCyclingWindow   (VOID);
  84. GLOBAL BOOL ShowMouseCyclingWindow     (VOID);
  85. GLOBAL VOID CloseMouseCyclingWindow    (VOID);
  86. GLOBAL LONG HandleMouseCyclingReturnID (LONG id);
  87. #endif /* BGUI */
  88.  
  89. #endif   /* MOUSECYCLING_H */
  90.